package com.sgs.carbon.starter.job.config;

import com.sgs.carbon.starter.job.core.scheduler.SchedulerManager;
import org.quartz.Scheduler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * Quartz 自动配置类
 *
 * @author Dave Liu
 * @date 2021-10-02
 */
@Configuration
@EnableScheduling
@SuppressWarnings("all")
public class MyQuartzAutoConfiguration {

    @Bean
    public SchedulerManager schedulerManager(Scheduler scheduler) {
        return new SchedulerManager(scheduler);
    }

}
